﻿using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Config_file_second_kindAppService : IConfig_file_second_kindAppService
    {
        private readonly IConfig_file_second_kindRepository cfsk;

        public Config_file_second_kindAppService(IConfig_file_second_kindRepository cfsk)
        {
            this.cfsk = cfsk;
        }
        public Task<int> AddCFKAsync(Config_file_second_kind config_File_Second_Kind)
        {
            return cfsk.AddCFKAsync(config_File_Second_Kind);
        }

        public Task<int> DeleteCFKAsync(int Id)
        {
            return cfsk.DeleteCFKAsync(Id);
        }

        public Task<List<Config_file_second_kind>> GetCFSKAsync()
        {
            return cfsk.GetCFSKAsync();
        }

        public  Task<List<Config_file_second_kind>> GetCFSKAsyncById(string kid)
        {

            return  cfsk.GetCFSKAsyncById(kid);
        }

        public async Task<List<Config_file_second_kind>> SelectCFK()
        {
            List<Config_file_second_kind> cFKS = await cfsk.SelectCFK();
            return cFKS;
           
        }

        public Task<int> UpdateCFKAsync(Config_file_second_kind config_File_Second_Kind)
        {
            return cfsk.UpdateCFKAsync(config_File_Second_Kind);
        }
    }
}
